<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>JsDoc Reference - Cal3D.CalRenderer</title>

		<style type="text/css">
			/* default.css */


body
{
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
	width: 800px;
}

.header
{
	clear: both;
	background-color: #ccc;
	padding: 8px;
}

h1
{
	font-size: 150%;
	font-weight: bold;
	padding: 0;
	margin: 1em 0 0 .3em;
}

hr
{
	border: none 0;
	border-top: 1px solid #7F8FB1;
	height: 1px;
}

pre.code
{
	display: inline;
//	padding: 8px;
//	border: 1px dashed #ccc;
	background-color: #4AA02C;
}

#index
{
	margin-top: 24px;
	float: left;
	width: 160px;
	position: absolute;
	left: 8px;
	background-color: #F3F3F3;
	padding: 8px;
}

#content
{
	margin-left: 190px;
	width: 600px;
}

.classList
{
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 8px;
	font-family: arial, sans-serif;
	font-size: 1em;
	overflow: auto;
}

.classList li
{
	padding: 0;
	margin: 0 0 8px 0;
}

.summaryTable { width: 100%; }

h1.classTitle
{
	font-size:170%;
	line-height:130%;
}

h2 { font-size: 110%; }
caption, div.sectionTitle
{
	background-color: #7F8FB1;
	color: #fff;
	font-size:130%;
	text-align: left;
	padding: 2px 6px 2px 6px;
	border: 1px #7F8FB1 solid;
}

div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }

.summaryTable td
{
	vertical-align: top;
	padding: 4px;
	border-bottom: 1px #7F8FB1 solid;
	border-right: 1px #7F8FB1 solid;
}

/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
	border-left: 1px #7F8FB1 solid;
	width: 140px;
	text-align: right;
}

td.attributes, .fixedFont
{
	line-height: 15px;
	color: #002EBE;
	font-family: "Courier New",Courier,monospace;
	font-size: 13px;
}

.summaryTable td.nameDescription
{
	text-align: left;
	font-size: 13px;
	line-height: 15px;
}

.summaryTable td.nameDescription, .description
{
	line-height: 15px;
	padding: 4px;
	padding-left: 4px;
}

.summaryTable { margin-bottom: 8px; }

ul.inheritsList
{
	list-style: square;
	margin-left: 20px;
	padding-left: 0;
}

.detailList {
	margin-left: 20px; 
	line-height: 15px;
}
.detailList dt { margin-left: 20px; }

.detailList .heading
{
	font-weight: bold;
	padding-bottom: 6px;
	margin-left: 0;
}

.light, td.attributes, .light a:link, .light a:visited
{
	color: #777;
	font-style: italic;
}

.fineprint
{
	text-align: right;
	font-size: 10px;
}
		</style>
	</head>

	<body>
<!-- ============================== header ================================= -->	
		<!-- begin static/header.html -->
		<div id="header">
</div>
		<!-- end static/header.html -->

<!-- ============================== classes index ============================ -->
		<div id="index">
			<!-- begin publish.classesIndex -->
			<div align="center"><a href="../index.html">Class Index</a>
| <a href="../files.html">File Index</a></div>
<hr />
<h2>Classes</h2>
<ul class="classList">
	
	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
	
	<li><a href="../symbols/Cal3D.html">Cal3D</a></li>
	
	<li><a href="../symbols/Cal3D.CalAbstractMixer.html">Cal3D.CalAbstractMixer</a></li>
	
	<li><a href="../symbols/Cal3D.CalAnimation.html">Cal3D.CalAnimation</a></li>
	
	<li><a href="../symbols/Cal3D.CalAnimationAction.html">Cal3D.CalAnimationAction</a></li>
	
	<li><a href="../symbols/Cal3D.CalAnimationCallback.html">Cal3D.CalAnimationCallback</a></li>
	
	<li><a href="../symbols/Cal3D.CalAnimationCycle.html">Cal3D.CalAnimationCycle</a></li>
	
	<li><a href="../symbols/Cal3D.CalBone.html">Cal3D.CalBone</a></li>
	
	<li><a href="../symbols/Cal3D.CalBoundingBox.html">Cal3D.CalBoundingBox</a></li>
	
	<li><a href="../symbols/Cal3D.CalBufferSource.html">Cal3D.CalBufferSource</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreAnimation.html">Cal3D.CalCoreAnimation</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreBone.html">Cal3D.CalCoreBone</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreKeyframe.html">Cal3D.CalCoreKeyframe</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreMaterial.html">Cal3D.CalCoreMaterial</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreMaterial.Color.html">Cal3D.CalCoreMaterial.Color</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreMaterial.Map.html">Cal3D.CalCoreMaterial.Map</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreMesh.html">Cal3D.CalCoreMesh</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreModel.html">Cal3D.CalCoreModel</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreMorphAnimation.html">Cal3D.CalCoreMorphAnimation</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreSkeleton.html">Cal3D.CalCoreSkeleton</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreSubmesh.html">Cal3D.CalCoreSubmesh</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreSubmesh.Face.html">Cal3D.CalCoreSubmesh.Face</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreSubmesh.Influence.html">Cal3D.CalCoreSubmesh.Influence</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreSubmesh.PhysicalProperty.html">Cal3D.CalCoreSubmesh.PhysicalProperty</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreSubmesh.Spring.html">Cal3D.CalCoreSubmesh.Spring</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreSubmesh.TangentSpace.html">Cal3D.CalCoreSubmesh.TangentSpace</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreSubmesh.TextureCoordinate.html">Cal3D.CalCoreSubmesh.TextureCoordinate</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreSubmesh.Vertex.html">Cal3D.CalCoreSubmesh.Vertex</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreSubMorphTarget.html">Cal3D.CalCoreSubMorphTarget</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreSubMorphTarget.BlendVertex.html">Cal3D.CalCoreSubMorphTarget.BlendVertex</a></li>
	
	<li><a href="../symbols/Cal3D.CalCoreTrack.html">Cal3D.CalCoreTrack</a></li>
	
	<li><a href="../symbols/Cal3D.CalError.html">Cal3D.CalError</a></li>
	
	<li><a href="../symbols/Cal3D.CalLibraryConstants.html">Cal3D.CalLibraryConstants</a></li>
	
	<li><a href="../symbols/Cal3D.CalLoader.html">Cal3D.CalLoader</a></li>
	
	<li><a href="../symbols/Cal3D.CalLoadingCallback.html">Cal3D.CalLoadingCallback</a></li>
	
	<li><a href="../symbols/Cal3D.CalMatrix.html">Cal3D.CalMatrix</a></li>
	
	<li><a href="../symbols/Cal3D.CalMesh.html">Cal3D.CalMesh</a></li>
	
	<li><a href="../symbols/Cal3D.CalMixer.html">Cal3D.CalMixer</a></li>
	
	<li><a href="../symbols/Cal3D.CalModel.html">Cal3D.CalModel</a></li>
	
	<li><a href="../symbols/Cal3D.CalMorphTargetMixer.html">Cal3D.CalMorphTargetMixer</a></li>
	
	<li><a href="../symbols/Cal3D.CalPhysique.html">Cal3D.CalPhysique</a></li>
	
	<li><a href="../symbols/Cal3D.CalQuaternion.html">Cal3D.CalQuaternion</a></li>
	
	<li><a href="../symbols/Cal3D.CalRenderer.html">Cal3D.CalRenderer</a></li>
	
	<li><a href="../symbols/Cal3D.CalSkeleton.html">Cal3D.CalSkeleton</a></li>
	
	<li><a href="../symbols/Cal3D.CalSubmesh.html">Cal3D.CalSubmesh</a></li>
	
	<li><a href="../symbols/Cal3D.CalSubmesh.Face.html">Cal3D.CalSubmesh.Face</a></li>
	
	<li><a href="../symbols/Cal3D.CalSubmesh.PhysicalProperty.html">Cal3D.CalSubmesh.PhysicalProperty</a></li>
	
	<li><a href="../symbols/Cal3D.CalSubmesh.TangentSpace.html">Cal3D.CalSubmesh.TangentSpace</a></li>
	
	<li><a href="../symbols/Cal3D.CalVector.html">Cal3D.CalVector</a></li>
	
</ul>
<hr />
			<!-- end publish.classesIndex -->
		</div>
		
		<div id="content">
<!-- ============================== class title ============================ -->
			<h1 class="classTitle">
				
				Class Cal3D.CalRenderer
			</h1>

<!-- ============================== class summary ========================== -->			
			<p class="description">
				
			
				CalRenderer
				
				
					<br /><i>Defined in: </i> <a href="../symbols/src/cal3djs_renderer.js.html">renderer.js</a>.
				
			</p>

<!-- ============================== constructor summary ==================== -->			
			
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class Cal3D.CalRenderer.">
				<caption>Class Summary</caption>
				<thead>
					<tr>
						<th scope="col">Constructor Attributes</th>
						<th scope="col">Constructor Name and Description</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="attributes">&nbsp;</td>
						<td class="nameDescription" >
							<div class="fixedFont">
								<b><a href="../symbols/Cal3D.CalRenderer.html">Cal3D.CalRenderer</a></b>(model)
							</div>
							<div class="description"></div>
						</td>
					</tr>
				</tbody>
			</table>
			

<!-- ============================== properties summary ===================== -->
			

<!-- ============================== methods summary ======================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class Cal3D.CalRenderer.">
					<caption>Method Summary</caption>
					<thead>
						<tr>
							<th scope="col">Method Attributes</th>
							<th scope="col">Method Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#beginRendering">beginRendering</a></b>()
								</div>
								<div class="description">Initialize the rendering query phase.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#endRendering">endRendering</a></b>()
								</div>
								<div class="description">Finish the rendering query phase.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getAmbientColor">getAmbientColor</a></b>(colorBuffer)
								</div>
								<div class="description">Get the ambient color.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getDiffuseColor">getDiffuseColor</a></b>(colorBuffer)
								</div>
								<div class="description">Get the diffuse color.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getFaceCount">getFaceCount</a></b>()
								</div>
								<div class="description">Get the number of faces.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getFaces">getFaces</a></b>(faceBuffer)
								</div>
								<div class="description">Get the face data.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getMapCount">getMapCount</a></b>()
								</div>
								<div class="description">Get the number of texture maps.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getMapUserData">getMapUserData</a></b>(mapId)
								</div>
								<div class="description">Get a specified texture map's user data.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getMeshCount">getMeshCount</a></b>()
								</div>
								<div class="description">Get the number of attached meshes.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getNormals">getNormals</a></b>(normalBuffer, stride)
								</div>
								<div class="description">Get the normal data.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getShininess">getShininess</a></b>()
								</div>
								<div class="description">Get the shininess factor.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getSpecularColor">getSpecularColor</a></b>(colorBuffer)
								</div>
								<div class="description">Get the specular color.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getSubmeshCount">getSubmeshCount</a></b>(meshId)
								</div>
								<div class="description">Get the number of submeshes.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getTangentSpaces">getTangentSpaces</a></b>(mapId, tangentSpaceBuffer, stride)
								</div>
								<div class="description">Get the tangent space data.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getTextureCoordinates">getTextureCoordinates</a></b>(mapId, textureCoordinateBuffer, stride)
								</div>
								<div class="description">Get the texture coordinate data.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getVertexCount">getVertexCount</a></b>()
								</div>
								<div class="description">Get the number of vertices.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getVertices">getVertices</a></b>(vertexBuffer, stride)
								</div>
								<div class="description">Get the vertex data.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getVerticesAndNormals">getVerticesAndNormals</a></b>(vertexBuffer, stride)
								</div>
								<div class="description">Get the vertex and normal data.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#getVerticesNormalsAndTexCoords">getVerticesNormalsAndTexCoords</a></b>(vertexBuffer, numTexCoords)
								</div>
								<div class="description">Get the vertex, normal and texture coordinate data.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#isTangentsEnabled">isTangentsEnabled</a></b>(mapId)
								</div>
								<div class="description">See if tangent are enabled on a specific texture map.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#selectMeshSubmesh">selectMeshSubmesh</a></b>(meshId, submeshId)
								</div>
								<div class="description">Select a mesh/submesh for rendering data queries.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/Cal3D.CalRenderer.html#setNormalization">setNormalization</a></b>(normalize)
								</div>
								<div class="description">Set the normalization flag.</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			
<!-- ============================== events summary ======================== -->
			

<!-- ============================== constructor details ==================== -->		
			
			<div class="details"><a name="constructor"> </a>
				<div class="sectionTitle">
					Class Detail
				</div>
				
				<div class="fixedFont">
						<b>Cal3D.CalRenderer</b>(model)
				</div>
				
				<div class="description">
					
					
				</div>
				
				
				
				
					
						<dl class="detailList">
						<dt class="heading">Parameters:</dt>
						
							<dt>
								 <b>model</b>
								
							</dt>
								<dd></dd>
						
						</dl>
					
					
					
					
					
					
					

			</div>
			

<!-- ============================== field details ========================== -->		
			

<!-- ============================== method details ========================= -->		
			
				<div class="sectionTitle">
					Method Detail
				</div>
				
					<a name="beginRendering"> </a>
					<div class="fixedFont">
					
					
					<b>beginRendering</b>()
					
					</div>
					<div class="description">
						Initialize the rendering query phase.<br />
	This function initializes the rendering query phase. It must be called before any rendering queries are executed.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="endRendering"> </a>
					<div class="fixedFont">
					
					
					<b>endRendering</b>()
					
					</div>
					<div class="description">
						Finish the rendering query phase.<br />
	This function finishes the rendering query phase. It must be called after all rendering queries have been executed.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="getAmbientColor"> </a>
					<div class="fixedFont">
					
					
					<b>getAmbientColor</b>(colorBuffer)
					
					</div>
					<div class="description">
						Get the ambient color.<br />
	This function returns the ambient color of the material of the selected mesh/submesh.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>colorBuffer</b>
									
								</dt>
								<dd>The user-provided buffer where the color data is written to. This is an output parameter.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="getDiffuseColor"> </a>
					<div class="fixedFont">
					
					
					<b>getDiffuseColor</b>(colorBuffer)
					
					</div>
					<div class="description">
						Get the diffuse color.<br />
	This function returns the diffuse color of the material of the selected mesh/submesh.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>colorBuffer</b>
									
								</dt>
								<dd>The user-provided buffer where the color data is written to. This is an output parameter.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="getFaceCount"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getFaceCount</b>()
					
					</div>
					<div class="description">
						Get the number of faces.<br />
	This function returns the number of faces in the selected mesh/submesh.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of faces.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getFaces"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getFaces</b>(faceBuffer)
					
					</div>
					<div class="description">
						Get the face data.<br />
	This function returns the face data (vertex indices) of the selected mesh/submesh. The LOD setting is taken into account.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>faceBuffer</b>
									
								</dt>
								<dd>The user-provided buffer where the face data is written to. This is an output parameter.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of faces written to the buffer.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getMapCount"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getMapCount</b>()
					
					</div>
					<div class="description">
						Get the number of texture maps.<br />
	This function returns the number of texture maps in the selected mesh/submesh.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of texture maps.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getMapUserData"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>getMapUserData</b>(mapId)
					
					</div>
					<div class="description">
						Get a specified texture map's user data.<br />
	This function returns the user data stored in the specified texture map of the material of the selected mesh/submesh.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>mapId</b>
									
								</dt>
								<dd>The ID of the texture map.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> The user data stored in the specified texture map; null if no user data is stored or any error happened.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getMeshCount"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getMeshCount</b>()
					
					</div>
					<div class="description">
						Get the number of attached meshes.<br />
	This function returns the number of meshes attached to the renderer instance.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of attached meshes.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getNormals"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getNormals</b>(normalBuffer, stride)
					
					</div>
					<div class="description">
						Get the normal data.<br />
	This function returns the vertex normal data of the selected mesh/submesh.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>normalBuffer</b>
									
								</dt>
								<dd>The user-provided buffer where the normal data is written to. This is an output parameter.</dd>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>stride</b>
									
								</dt>
								<dd>(Optional). The offset from the start of one data to the start of next data, default to 3.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of normals written to the buffer.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getShininess"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getShininess</b>()
					
					</div>
					<div class="description">
						Get the shininess factor.<br />
	This function returns the shininess factor of the material of the selected mesh/submesh.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The shininess factor.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getSpecularColor"> </a>
					<div class="fixedFont">
					
					
					<b>getSpecularColor</b>(colorBuffer)
					
					</div>
					<div class="description">
						Get the specular color.<br />
	This function returns the specular color of the material of the selected mesh/submesh.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>colorBuffer</b>
									
								</dt>
								<dd>The user-provided buffer where the color data is written to. This is an output parameter.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="getSubmeshCount"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getSubmeshCount</b>(meshId)
					
					</div>
					<div class="description">
						Get the number of submeshes.<br />
	This function returns the number of submeshes in a given mesh.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>meshId</b>
									
								</dt>
								<dd>The ID of the mesh whose number of submeshes should be returned.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of submeshes.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getTangentSpaces"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getTangentSpaces</b>(mapId, tangentSpaceBuffer, stride)
					
					</div>
					<div class="description">
						Get the tangent space data.<br />
	This function returns the tangent space data of the selected mesh/submesh.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>mapId</b>
									
								</dt>
								<dd>The ID of the texture map.</dd>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>tangentSpaceBuffer</b>
									
								</dt>
								<dd>The user-provided buffer where the tangent space ata is written to. This is an output parameter.</dd>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>stride</b>
									
								</dt>
								<dd>(Optional). The offset from the start of one data to the start of next data, default to 4.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of tangent space written to the buffer.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getTextureCoordinates"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getTextureCoordinates</b>(mapId, textureCoordinateBuffer, stride)
					
					</div>
					<div class="description">
						Get the texture coordinate data.<br />
	This function returns the texture coordinate data for a given map of the selected mesh/submesh.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>mapId</b>
									
								</dt>
								<dd>The ID of the map to get the texture coordinate data from.</dd>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>textureCoordinateBuffer</b>
									
								</dt>
								<dd>The user-provided buffer where the texture coordinate data is written to. This is an output parameter.</dd>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>stride</b>
									
								</dt>
								<dd>(Optional). The offset from the start of one data to the start of next data, default to 2.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of texture coordinates written to the buffer.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getVertexCount"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getVertexCount</b>()
					
					</div>
					<div class="description">
						Get the number of vertices.<br />
	This function returns the number of vertices in the selected mesh/submesh.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of vertices.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getVertices"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getVertices</b>(vertexBuffer, stride)
					
					</div>
					<div class="description">
						Get the vertex data.<br />
	This function returns the vertex data of the selected mesh/submesh.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>vertexBuffer</b>
									
								</dt>
								<dd>The user-provided buffer where the vertex data is written to. This is an output parameter.</dd>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>stride</b>
									
								</dt>
								<dd>(Optional). The offset from the start of one data to the start of next data, default to 3.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of vertices written to the buffer.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getVerticesAndNormals"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getVerticesAndNormals</b>(vertexBuffer, stride)
					
					</div>
					<div class="description">
						Get the vertex and normal data.<br />
	This function returns the vertex and vertex normal data of the selected mesh/submesh.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>vertexBuffer</b>
									
								</dt>
								<dd>The user-provided buffer where the vertex and normal data is written to. This is an output parameter.</dd>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>stride</b>
									
								</dt>
								<dd>(Optional). The offset from the start of one data to the start of next data, default to 6.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of vertices written to the buffer.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="getVerticesNormalsAndTexCoords"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>getVerticesNormalsAndTexCoords</b>(vertexBuffer, numTexCoords)
					
					</div>
					<div class="description">
						Get the vertex, normal and texture coordinate data.<br />
	This function returns the vertex, vertex normal and texture coordinate data of the selected mesh/submesh.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Array}</span> <b>vertexBuffer</b>
									
								</dt>
								<dd>The user-provided buffer where the vertex, normal and texture coordinate data is written to. This is an output parameter.</dd>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>numTexCoords</b>
									
								</dt>
								<dd>The number of texture maps whose texture coordinates is required, since there can be 0 or more than 1 texture maps defined.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> The number of vertices written to the buffer.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="isTangentsEnabled"> </a>
					<div class="fixedFont">
					
					<span class="light">{boolean}</span>
					<b>isTangentsEnabled</b>(mapId)
					
					</div>
					<div class="description">
						See if tangent are enabled on a specific texture map.<br />
	This function returns if tangent of the current submesh are enabled.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>mapId</b>
									
								</dt>
								<dd>The ID of the texture map.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> Whether tangent is enabled.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="selectMeshSubmesh"> </a>
					<div class="fixedFont">
					
					<span class="light">{boolean}</span>
					<b>selectMeshSubmesh</b>(meshId, submeshId)
					
					</div>
					<div class="description">
						Select a mesh/submesh for rendering data queries.<br />
	This function selects a mesh/submesh for further rendering data queries.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>meshId</b>
									
								</dt>
								<dd>The ID of the mesh that should be used for further rendering data queries.</dd>
							
								<dt>
									<span class="light fixedFont">{number}</span> <b>submeshId</b>
									
								</dt>
								<dd>The ID of the submesh that should be used for further rendering data queries.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{boolean}</span> true if succeeded; false if the mesh or the submesh does not exist.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="setNormalization"> </a>
					<div class="fixedFont">
					
					
					<b>setNormalization</b>(normalize)
					
					</div>
					<div class="description">
						Set the normalization flag.<br />
	This function sets the normalization flag on or off. If off, the normals calculated by Cal3D will not be normalized. Instead, 
	this transform is left up to the user.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{boolean}</span> <b>normalize</b>
									
								</dt>
								<dd>The normalization flag.</dd>
							
							</dl>
						
						
						
						
						
						
						

					
				
			
			
<!-- ============================== event details ========================= -->		
			
			
			<hr />
		</div>

		
<!-- ============================== footer ================================= -->
		<div class="fineprint" style="clear:both">
			
			Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.1.0 on Wed Sep 14 2011 17:55:16 GMT+0800 (CST)
		</div>
	</body>
</html>
